<p id="ferrors"></p>
<form action="" method="post">
  <div class="fanserl"> 
    <?php if($result['image'] == NULL){ ?>
    <img src="<?php echo base_url(); ?>public/images/no-avatar.png" width="50" alt="<?php echo $result['username']; ?>" title="<?php echo $result['username']; ?>" />
    <?php }else{ ?>
    <img src="<?php echo base_url(); ?>uploads/users/thumb/<?php echo $this->session->userdata['userimg']; ?>" width="50" alt="<?php echo $result['username']; ?>" title="<?php echo $result['username']; ?>" height="50" />
    <?php } ?>
  </div>
  <div class="fanserm">
    <input type="hidden" id="fuserid" value="<?php echo $this->session->userdata("userid"); ?>" />
    <input type="hidden" id="fusername" value="<?php echo $this->session->userdata("username"); ?>" />
    <input type="hidden" id="fquestid" value="<?php echo $result['id']; ?>" />
    <input type="hidden" id="fcateid" value="<?php echo $category['cid']; ?>" />
    <textarea name="answer" id="fanswer" cols="50" rows="4" placeholder="Bắt đầu câu trả lời của bạn!"></textarea>
  </div>
  <div class="fanserr">
    <input type="submit" name="submit" id="fsubmit" value="Trả lời" />
    <input type="button" id="fless" class="fless" value="Thu nhỏ">
  </div>
</form>
